package com.bjbn.service.impl;

import com.bjbn.bean.entity.FlightInfo;
import com.bjbn.mapper.secondary.FlightInfoMapper;
import com.bjbn.service.FlightInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Slf4j
public class FlightInfoServiceImpl implements FlightInfoService {

    @Autowired
    FlightInfoMapper flightInfoMapper;

    @Override
    @Transactional(transactionManager = "secondaryTransactionManager")
    public FlightInfo getFlightInfo(Long FLID) {
        return flightInfoMapper.selectById(FLID);
    }
}
